<!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>

<head>
    <!--
    Customize this policy to fit your own app's needs. For more guidance, see:
        https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
    Some notes:
        * gap: is required only on iOS (when using UIWebView) and is needed for JS->native communication
        * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
        * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
            * Enable inline JS: add 'unsafe-inline' to default-src
    -->
    
    <meta http-equiv="Access-Control-Allow-Origin" content="*" >
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="viewport"
        content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <title>API Clock</title>
</head>

<body>
    <div id="main_div">
        <div id="func_div">
            <div>
                <form>
                    <div class="div_tr">
                        <span>音频文件</span>
                        <input class="commonInput" type="file" id="input_audio" accept="audio/*" onchange="set_audio(this)">
                    </div>
                    <div class="div_tr">
                        <span>UID</span>
                        <input class="commonInput" type="text" id="uid_input" placeholder="空格分隔多个UID，例：3709626 1 2">
                    </div>
                    <div class="div_tr">
                        <span>轮循间隔（秒）</span>
                        <input class="commonInput" type="text" id="loop_interval" placeholder="例：10">
                    </div>
                    <div class="div_tr">
                        <button class="commonBtn" type="button" onclick="config_init()">配置初始化</button>
                        <button class="commonBtn" type="button" onclick="save_config()">保存配置</button>
                        <button class="commonBtn" type="button" onclick="auto_clear_log()">每分钟清空日志</button>
                        <button class="commonBtn" type="button" onclick="clear_log()">清空日志</button>
                        <button class="commonBtn" id="stop_btn" type="button" onclick="stop_run()">停止运行</button>
                        <button class="commonBtn" id="run_btn" type="button" onclick="self_start_run()">自启动运行</button>
                    </div>
                </form>
            </div>
            <div id="div_audio">
                <audio id="audio_id" controls loop></audio>
            </div>
        </div>
        <div id="set_div">
            <div class="div_tr">
                <span>背景设置</span>
                <input class="commonInput" type="file" id="input_bg" accept="image/*" onchange="set_bg(this)">
            </div>
            <div class="div_tr">
                <button class="commonBtn" type="button" onclick="print_help()">使用说明</button>
            </div>
        </div>
        <div id="output">
        </div>
    </div>
    <div id="footer">
        <div id="func_btn"><p>功能</p></div>
        <div id="set_btn"><p>设置</p></div>
    </div>

    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
</body>

</html>